﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace sdata
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IServiceTC3
    {
        [OperationContract]
        string GetData(int value);
        [OperationContract]
        string  HelloWorld(string mes);

        [OperationContract]
        CompositeType GetDataUsingDataContract(CompositeType composite);
        [OperationContract]
        int insert(CLIENT_REPORTLOG_OBJ obj);
        // TODO: Add your service operations here
    }


    // Use a data contract as illustrated in the sample below to add composite types to service operations.
    [DataContract]
    public class dataobject{
        private int _id;
        private string _name;
        [DataMember]
        public int id
        {
            get { return _id; }
            set { _id = value; }
        }
        public string name
        {
            get { return _name; }
            set { _name = value; }
        }
    }

    [DataContract]
    public class CompositeType
    {
        bool boolValue = true;
        string stringValue = "Hello ";

        [DataMember]
        public bool BoolValue
        {
            get { return boolValue; }
            set { boolValue = value; }
        }

        [DataMember]
        public string StringValue
        {
            get { return stringValue; }
            set { stringValue = value; }
        }
    }
    [DataContract]
    public class CLIENT_REPORTLOG_OBJ
    {
        //main object
        protected string _codeP = "{yyyyMMdd}{CCCCCCCCCCCC}";
        private System.String _CODE;
        private System.String _CODEVIEW;
        private System.String _NAME;
        private System.String _NOTE;
        private System.String _EDITUSER;
        private System.DateTime _EDITTIME;
        private System.Int16 _LOCK;
        private System.DateTime _LOCKDATE;
        private System.String _COMPANYCODE;
        private System.Int32 _DEVICEID;
        private System.Int32 _DRIVERID;
        private System.DateTime _REPORTTIME;
        private System.Double _LATITUDE;
        private System.Double _LONGITUDE;
        private System.Double _GPSSPEED;
        private System.Double _FUELLEVEL;
        private System.Double _MECHANICSPEED;
        private System.Double _MECHANICDISTANCE;
        private System.Int32 _DATADELETE;
        private System.Double _WASTEDISTANCE;
        private System.DateTime _PICKUPTIME;
        private System.Decimal _FARE;
        private System.Double _FAREDISTANCE;
        private System.Int32 _WAITINGTIME;
        private System.DateTime _ENDFARE;
        private System.Int32 _POSITIONFIX;
        private System.Int32 _SOS;
        private System.Int32 _OPENENGINE;
        private System.Int32 _OPENDOOR;
        private System.Int32 _OPENAIR;
        private System.Int32 _FUELRELAY;
        private System.Int32 _CAMERARELAY;
        private System.Int32 _INCAR;
        private System.Int32 _INFARE;
        private System.Int32 _INFARECAMERE;
        private System.Int32 _ENGINEON;
        private System.Int32 _CHECKER;
        private System.Int32 _WAITINGFARE;
        private System.Int32 _ENDFAREEVENT;
        private System.Int32 _MEMORY;
        private System.Int32 _REPLAY;
        private System.String _DETAILADDRESS;
        private System.Double _LONGITUDEPRE;
        private System.Double _LATITUDEPRE;
        private System.DateTime _REPORTTIMEPRE;
        private System.String _CARNUMBER;
        private System.String _CARVIN;
        private System.String _DRIVERNAME;
        private System.String _DRIVERPHONE;
        private System.String _DRIVERLICENCE;
        private System.Double _SUMMECHANICDISTANCE;
        private System.Int32 _SUMSTOP;
        private System.Int32 _SUMOVERSPEED;
        private System.DateTime _BEGINOVERSPEED;
        private System.DateTime _BEGINSTOP;
        private System.DateTime _BEGINDRIVING;
        private System.Int32 _SUMDRIVING;
        private System.Double _GPSSPEEDPRE;
        private System.Double _MECHANICSPEEDPRE;
        private System.Int32 _OPENENGINEPRE;
        private System.Int32 _ENGINEONPRE;
        private System.Int32 _OPENAIRPRE;
        private System.String _DETAILADDRESSPRE;
        private System.Int32 _OPENDOORPRE;


        [DataMember]
        public virtual System.String CODE
        {
            get { return _CODE; }
            set { _CODE = value; }
        }
        [DataMember]
        public virtual System.String CODEVIEW
        {
            get { return _CODEVIEW; }
            set { _CODEVIEW = value; }
        }
        [DataMember]
        public virtual System.String NAME
        {
            get { return _NAME; }
            set { _NAME = value; }
        }
        [DataMember]
        public virtual System.String NOTE
        {
            get { return _NOTE; }
            set { _NOTE = value; }
        }
        [DataMember]
        public virtual System.String EDITUSER
        {
            get { return _EDITUSER; }
            set { _EDITUSER = value; }
        }
        [DataMember]
        public virtual System.DateTime EDITTIME
        {
            get { return _EDITTIME; }
            set { _EDITTIME = value; }
        }
        [DataMember]
        public virtual System.Int16 LOCK
        {
            get { return _LOCK; }
            set { _LOCK = value; }
        }
        [DataMember]
        public virtual System.DateTime LOCKDATE
        {
            get { return _LOCKDATE; }
            set { _LOCKDATE = value; }
        }
        [DataMember]
        public virtual System.String COMPANYCODE
        {
            get { return _COMPANYCODE; }
            set { _COMPANYCODE = value; }
        }
        [DataMember]
        public virtual System.Int32 DEVICEID
        {
            get { return _DEVICEID; }
            set { _DEVICEID = value; }
        }
        [DataMember]
        public virtual System.Int32 DRIVERID
        {
            get { return _DRIVERID; }
            set { _DRIVERID = value; }
        }
        [DataMember]
        public virtual System.DateTime REPORTTIME
        {
            get { return _REPORTTIME; }
            set { _REPORTTIME = value; }
        }
        [DataMember]
        public virtual System.Double LATITUDE
        {
            get { return _LATITUDE; }
            set { _LATITUDE = value; }
        }
        [DataMember]
        public virtual System.Double LONGITUDE
        {
            get { return _LONGITUDE; }
            set { _LONGITUDE = value; }
        }
        [DataMember]
        public virtual System.Double GPSSPEED
        {
            get { return _GPSSPEED; }
            set { _GPSSPEED = value; }
        }
        [DataMember]
        public virtual System.Double FUELLEVEL
        {
            get { return _FUELLEVEL; }
            set { _FUELLEVEL = value; }
        }
        [DataMember]
        public virtual System.Double MECHANICSPEED
        {
            get { return _MECHANICSPEED; }
            set { _MECHANICSPEED = value; }
        }
        [DataMember]
        public virtual System.Double MECHANICDISTANCE
        {
            get { return _MECHANICDISTANCE; }
            set { _MECHANICDISTANCE = value; }
        }
        [DataMember]
        public virtual System.Int32 DATADELETE
        {
            get { return _DATADELETE; }
            set { _DATADELETE = value; }
        }
        [DataMember]
        public virtual System.Double WASTEDISTANCE
        {
            get { return _WASTEDISTANCE; }
            set { _WASTEDISTANCE = value; }
        }
        [DataMember]
        public virtual System.DateTime PICKUPTIME
        {
            get { return _PICKUPTIME; }
            set { _PICKUPTIME = value; }
        }
        [DataMember]
        public virtual System.Decimal FARE
        {
            get { return _FARE; }
            set { _FARE = value; }
        }
        [DataMember]
        public virtual System.Double FAREDISTANCE
        {
            get { return _FAREDISTANCE; }
            set { _FAREDISTANCE = value; }
        }
        [DataMember]
        public virtual System.Int32 WAITINGTIME
        {
            get { return _WAITINGTIME; }
            set { _WAITINGTIME = value; }
        }
        [DataMember]
        public virtual System.DateTime ENDFARE
        {
            get { return _ENDFARE; }
            set { _ENDFARE = value; }
        }
        [DataMember]
        public virtual System.Int32 POSITIONFIX
        {
            get { return _POSITIONFIX; }
            set { _POSITIONFIX = value; }
        }
        [DataMember]
        public virtual System.Int32 SOS
        {
            get { return _SOS; }
            set { _SOS = value; }
        }
        [DataMember]
        public virtual System.Int32 OPENENGINE
        {
            get { return _OPENENGINE; }
            set { _OPENENGINE = value; }
        }
        [DataMember]
        public virtual System.Int32 OPENDOOR
        {
            get { return _OPENDOOR; }
            set { _OPENDOOR = value; }
        }
        [DataMember]
        public virtual System.Int32 OPENAIR
        {
            get { return _OPENAIR; }
            set { _OPENAIR = value; }
        }
        [DataMember]
        public virtual System.Int32 FUELRELAY
        {
            get { return _FUELRELAY; }
            set { _FUELRELAY = value; }
        }
        [DataMember]
        public virtual System.Int32 CAMERARELAY
        {
            get { return _CAMERARELAY; }
            set { _CAMERARELAY = value; }
        }
        [DataMember]
        public virtual System.Int32 INCAR
        {
            get { return _INCAR; }
            set { _INCAR = value; }
        }
        [DataMember]
        public virtual System.Int32 INFARE
        {
            get { return _INFARE; }
            set { _INFARE = value; }
        }
        [DataMember]
        public virtual System.Int32 INFARECAMERE
        {
            get { return _INFARECAMERE; }
            set { _INFARECAMERE = value; }
        }
        [DataMember]
        public virtual System.Int32 ENGINEON
        {
            get { return _ENGINEON; }
            set { _ENGINEON = value; }
        }
        [DataMember]
        public virtual System.Int32 CHECKER
        {
            get { return _CHECKER; }
            set { _CHECKER = value; }
        }
        [DataMember]
        public virtual System.Int32 WAITINGFARE
        {
            get { return _WAITINGFARE; }
            set { _WAITINGFARE = value; }
        }
        [DataMember]
        public virtual System.Int32 ENDFAREEVENT
        {
            get { return _ENDFAREEVENT; }
            set { _ENDFAREEVENT = value; }
        }
        [DataMember]
        public virtual System.Int32 MEMORY
        {
            get { return _MEMORY; }
            set { _MEMORY = value; }
        }
        [DataMember]
        public virtual System.Int32 REPLAY
        {
            get { return _REPLAY; }
            set { _REPLAY = value; }
        }
        [DataMember]
        public virtual System.String DETAILADDRESS
        {
            get { return _DETAILADDRESS; }
            set { _DETAILADDRESS = value; }
        }
        [DataMember]
        public virtual System.Double LONGITUDEPRE
        {
            get { return _LONGITUDEPRE; }
            set { _LONGITUDEPRE = value; }
        }
        [DataMember]
        public virtual System.Double LATITUDEPRE
        {
            get { return _LATITUDEPRE; }
            set { _LATITUDEPRE = value; }
        }
        [DataMember]
        public virtual System.DateTime REPORTTIMEPRE
        {
            get { return _REPORTTIMEPRE; }
            set { _REPORTTIMEPRE = value; }
        }
        [DataMember]
        public virtual System.String CARNUMBER
        {
            get { return _CARNUMBER; }
            set { _CARNUMBER = value; }
        }
        [DataMember]
        public virtual System.String CARVIN
        {
            get { return _CARVIN; }
            set { _CARVIN = value; }
        }
        [DataMember]
        public virtual System.String DRIVERNAME
        {
            get { return _DRIVERNAME; }
            set { _DRIVERNAME = value; }
        }
        [DataMember]
        public virtual System.String DRIVERPHONE
        {
            get { return _DRIVERPHONE; }
            set { _DRIVERPHONE = value; }
        }
        [DataMember]
        public virtual System.String DRIVERLICENCE
        {
            get { return _DRIVERLICENCE; }
            set { _DRIVERLICENCE = value; }
        }
        [DataMember]
        public virtual System.Double SUMMECHANICDISTANCE
        {
            get { return _SUMMECHANICDISTANCE; }
            set { _SUMMECHANICDISTANCE = value; }
        }
        [DataMember]
        public virtual System.Int32 SUMSTOP
        {
            get { return _SUMSTOP; }
            set { _SUMSTOP = value; }
        }
        [DataMember]
        public virtual System.Int32 SUMOVERSPEED
        {
            get { return _SUMOVERSPEED; }
            set { _SUMOVERSPEED = value; }
        }
        [DataMember]
        public virtual System.DateTime BEGINOVERSPEED
        {
            get { return _BEGINOVERSPEED; }
            set { _BEGINOVERSPEED = value; }
        }
        [DataMember]
        public virtual System.DateTime BEGINSTOP
        {
            get { return _BEGINSTOP; }
            set { _BEGINSTOP = value; }
        }
        [DataMember]
        public virtual System.DateTime BEGINDRIVING
        {
            get { return _BEGINDRIVING; }
            set { _BEGINDRIVING = value; }
        }
        [DataMember]
        public virtual System.Int32 SUMDRIVING
        {
            get { return _SUMDRIVING; }
            set { _SUMDRIVING = value; }
        }
        [DataMember]
       public virtual System.Double GPSSPEEDPRE
        {
            get { return _GPSSPEEDPRE; }
            set { _GPSSPEEDPRE = value; }
        }
        [DataMember]
       public virtual System.Double MECHANICSPEEDPRE
        {
            get { return _MECHANICSPEEDPRE; }
            set { _MECHANICSPEEDPRE = value; }
        }
        [DataMember]
       public virtual System.Int32 OPENENGINEPRE
        {
            get { return _OPENENGINEPRE; }
            set { _OPENENGINEPRE = value; }
        }
        [DataMember]
       public virtual System.Int32 ENGINEONPRE
        {
            get { return _ENGINEONPRE; }
            set { _ENGINEONPRE = value; }
        }
        [DataMember]
       public virtual System.Int32 OPENAIRPRE
        {
            get { return _OPENAIRPRE; }
            set { _OPENAIRPRE = value; }
        }
        [DataMember]
       public virtual System.String DETAILADDRESSPRE
        {
            get { return _DETAILADDRESSPRE; }
            set { _DETAILADDRESSPRE = value; }
        }
        [DataMember]
       public virtual System.Int32 OPENDOORPRE
        {
            get { return _OPENDOORPRE; }
            set { _OPENDOORPRE = value; }
        }
    }
}
